package com.gsafety.wellsfort.dao.knowledge;

import com.gsafety.wellsfort.domain.model.knowledge.ExamQuestion;
import com.gsafety.wellsfort.domain.model.knowledge.Question;
import com.gsafety.wellsfort.domain.model.knowledge.WorkQuestion;
import com.gsafety.wellsfort.domain.vo.QuestionVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ExamQuestionDAO {
    int deleteByPrimaryKey(Integer id);

    int deleteByExamId(Integer examId);

    int insert(ExamQuestion record);

    int countQuestionNum(@Param("examId") Integer examId, @Param("questionType")Integer questionType);

    ExamQuestion selectByExamIdAndQuestionId(@Param("examId") Integer workId, @Param("questionId")Integer questionId);

    int insertSelective(ExamQuestion record);

    ExamQuestion selectByPrimaryKey(Integer id);

    List<QuestionVO> selectByParam(Map params);

    List<Question> selectAddQuestionByParam(Map params);

    int updateByPrimaryKeySelective(ExamQuestion record);

    int updateByPrimaryKey(ExamQuestion record);
}